home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 11: TSX-11 / Linux Cubed Series 11 - TSX-11 Vol 1.iso / usr.bin / mtc.rea < prev    next >
Text File  |  1996-11-30  |  2KB  |  45 lines

  1. This is a port of mtc, a program to convert Modula-2 to C. Main parts are:
  2.  
  3.       mtc:       translates sources in Modula-2 to C, with
  4.       makemake:  creates a Makefile to translate, compile and link a source
  5.       reuse:     library of reusable modules
  6.  
  7. There are two versions of this port: mtcbin.tpz and mtcsrc.tpz 
  8.  
  9. (1) Binaries are in mtcbin.tpz (scripts \usr\bin\mtc, \usr\bin\makemake,
  10.     the rest can be found in \usr\local\lib\mtc), compiled with gcc-2.3.3 
  11.     and Linux 99pl4. 
  12.  
  13. (2) Sources are in mtcsrc.tpz. Just do
  14.         make
  15.         make install
  16.     to create and install the binaries found in mtcbin.tpz.
  17.  
  18. mtc, makemake and reuse are parts of cocktail, the Compiler Construction Tool 
  19. Box of the Gesellschaft fuer Mathematik and Datenverarbeitung, Forschungsstelle
  20. fuer Programmstrukturen an der Universitaet Karlsruhe (Germany)
  21. --------------------------------------------------------------------------------
  22. Usage:
  23.  
  24.    makemake [directories]
  25.  
  26. Makemake inspects the Modula-2 sources in the given directories (default:
  27. working directory) and writes a makefile on stdoutput. The makefile describes
  28. the dependencies of the C sources produced by mtc out of Modula-2 sources.
  29. It also describes the translation of Modula-2 sources to C.
  30.  
  31.    make sources        : calls mtc to convert all Modula-2 sources to C
  32.    make all        : calls cc to compile and link all C programs
  33.  
  34. So, given correct sources in Modula-2, all you have to do is: 
  35.    
  36.    makemake > Makefile ; make
  37.  
  38. The Modula-sources for the library can be found in /usr/local/lib/mtc/src 
  39. (no InOut.md, but e.g. StdIO.md). Beware: The extension for definition modules 
  40. is '.md', and implementation modules use '.mi'.
  41.  
  42. If you want to use own libraries, you should modify 
  43.     /usr/local/lib/mtc/makemake/makemake.awk. 
  44. This file is used as a template by the script /usr/bin/makemake.
  45.